package cate.common.table.farm.spicefb.sheet;

import cate.common.table.ESheet;
import cate.common.table.farm.spicefb.row.SpiceFbStarRow;
import easy.java.dev.note.NoteClass;

@NoteClass(value = "水晶峡谷星级宝箱")
public class SpiceFbStarSheet extends ESheet<SpiceFbStarRow> {
    @Override
    public String getSheetName() {
        return "水晶峡谷星星";
    }

    public SpiceFbStarRow getStarRow(int star) {
        SpiceFbStarRow row = null;
        for (SpiceFbStarRow r : getList()) {
            if (star >= r.star) {
                row = r;
            } else {
                break;
            }
        }
        return row;
    }
}
